jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Fri, 13 Mar 2026 01:25:04 +0000 (14:25 +1300)
committerVladimir Petko <vladimir.petko@canonical.com>
Fri, 13 Mar 2026 01:25:04 +0000 (14:25 +1300)
commitfe310c3ed79f7fd7e7b2034b2bd4592557cb917c
tree095db84779622be3c557ade4319be7d28bbf8cf2
parenta9d42f55e34797de3d534a515e66ca2ee93e6a72
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk